public async void CacheData(T data) { if (data == null) { return; } var serializedData = Encoding.UTF8.GetBytes(Serialize(data).OuterXml); var encryptedData = await _encryptionManager.EncryptV2(serializedData, true); await SetBytesAsync(encryptedData); }