Use the usergroups cache instead of queries.