Deduplicate before finalizing exported CSV files