Add small optimization for parseLengthCodedNumber