optimize by removing columns for each set before merge