Try to reduce memory footprint of GetEntities