What is happening
MariaDB reserves key ID 1 for system data such as redo and binary logs, while tables can use other IDs and rotated versions. The server may need old key versions to read existing pages. Removing a plugin early can make tablespaces or crash-recovery logs permanently inaccessible even when current keys still exist.