Minor tweak to avoid using readUInt8, since its slightly slower.