Move the AES-XTS mode duplicated key check into the init_key function rather