Upgrade and change the encryption key