Optimization of iterator initialization.