optimizing code that mimic BigInteger auto increment behavior - this significantly increases import performance