encryption_mode is unused in template?