Iterate 1000 times saving and loading cache