Optimizing CSV generation.