Keep keys when switching algorithms