Perform locking around config writing
Revise caching of PermissionUser objects to only occur for online users