change rolling_cache to a state