Try using a generator to prep the exported CSV.