Improve perf by removing a loop that does IO
Merge pull request #155 from pmuir/remove_redundant_code

Improve perf by removing a loop that does IO