Cached group ids in UserProfile; Greatly optimized all permissions checks (e.g. Task list query dropped from 1.8s to 0.25s)