Fixed a crash, do not regenerate the RSA keys overtime