changed how the entity registry stores information
num queries went down a lot with optimizations