[misc] Improve the performance of the default HSQLDB database backend
Now it's suitable for production use