Improve perf by removing a loop that does IO

Pretty sure this line is left over from some debugging and does nothing except reduce performance.