RSA improvements