When adding files to payload, don't bother copying the file if source and destination are the same. Just compute the checksum.