[CA-125856], [SCTX-1588]: Fixed the slow AD logon for users with large group memberships.
Added some improvements to the UserDetails class:
- kept the UserDetails.GroupMembershipNames property and added a function to get the group names once and then cache them.
- optimized the code for getting user details.