this could be sped up by using the knowledge that all messages will be for a specific entity, right?