Implemented privilege cache to improve performance.
Merge remote-tracking branch 'origin/master'