speed up query_radius