Optimization in networking protocol: insert, update and remove commands now sent in one packet with subsequent  getLastError()