Use a single get_objects query instead of N get_object queries