Make index maps internal to the iteration