Changes History.compute_file_contents to History.retrieve_or_create