I figure the internal data structure that already exists in the BT library probably uses something similar to a hash table, so I emulated it with less of the data being saved (just a MAC). You’re right though, there are smaller choices for data structures. I ended up upgrading to a better board with more memory, and just used the existing structure in the BT library. It fixed a number of other problems at the same time.