Call getIterator once.