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