Break O(m*n) behaviour when n files share m duplicates.