RSA decrpytion optimized using a repeated squares method to decrypt the given certificates