BigIntegerSerializer and BigDecimalSerializer optimization