Optimized xlsx file writing