Prevents private key from being logged.