Slowdown halfway through the file