Do not unnecessarily query every entity when we only need to query the entities that are on grid.
more performance improvements (and logging fixes)