Refactored privilege cache to sitekit core module.