Updating encrypted key data