optimised csv export