Record cipher mode when saving