I think for that one, because it also returns the array a line later, you need to cache the iterator to an actual fixed array before passing it to the memoryStore. Otherwise, the memoryStore could consume a 'one-time' iterator and leave you with nothing.