Cache credentials in memory to let the request finish other tasks without the private key