Replace TextReadFileIterator with SplFileIterator and call setFlags(SKIP_EMPTY | READ_AHEAD)