improved performance for win write byte wait