optimized users_relations method