Some BigNumber optimisations for the sake of RSA speed