Small update on this MOD.
It uses same approach as before, but known bugs are fixed. This caches SQL queries, adds SQL queries counter and page generation time to footer of site.
I relesaed this version to phpBBStyles community some time ago, but I forgot about this thread. If you users have no problem, I will submit.