Optimized writing