Added caching of policies and policy configs