changing cache policy slow for states and variables