Speeds up exponentiation