WIP: Add improvements to policy cache #77

Draft
rajitha wants to merge 2 commits from rajitha/device-mgt-core:policy-cache-improvements into master