Make sure files don't contain duplicates.
Reduce memory usage and reads.