update encrypted variable