Optimize bytes counting in ZmqTransport.