improved write buffer size