Optimization of the iterator cycle performance.