Be smarter when asking for a private key