optimized write performance