pre-fetch group memberships to avoid issues with concurrent searches