Make this more efficient now that we know both files are the same length.