More memory efficient CSV writing, + preprocessed file