Added caching for group membership and permissions. Made all groups
cache indefinitely for performance reasons.