made it configurable how many periods should skip the cache.