reduce the amount of get_file_contents() calls by about 50%
Merge pull request #1 from delan/patch-1

reduce the amount of get_file_contents() calls by about 50%