Cache iteration template.
Merge pull request #1368 from NV/repetition-arguments

Cache iteration template