We are using Azure KeyVault to store certain back end credentials that our Azure API uses to query. The GetSecretAsync call always takes at least 15 seconds to return. Is there any way to speed up this call. Below is the code used.
KeyVaultClient kvClient = new KeyVaultClient(new KeyVaultClient.AuthenticationCallback(TokenBasedAccessHelper.GetToken)); var secret = Task.Run(async () => await kvClient.GetSecretAsync(url)).Result; return secret.Value