Add optimization to skip duplicate file merges.