Dedupe files to be saved