cleanup byte[] -> BigInteger calculations