Do not allow to store invalid private keys.