Some write() speedup