bigint: small optimizations