I would start by increasing the memory available to Mariadb. You want it to be about 80% of your available memory to get as much of the working set into memory as possible.
In c:\program files\mariadb\data\my.ini
Change or add this line.
innodb_buffer_pool_size=12GB
make sure it's under the [mysqld] section and not the [client] section.
Then restart mariadb service.