Cache the iterator in the call on line 619, so that the method call doesn't need to be made multiple times.