Optimize writeByte