optimize ping write (two Write calls result in two network writes)