Use variable encoding for ints, longs, and doubles in the specialized serializers.