performance improvement, check configuration only if no private key exists