Clear cache on each iteration