Improved memory usage for large sheet exports