Personally, I would not go this way.
I prefer installing memcached (for datastore) then use XCache for the rest of the php files.
From my tests, this combination improves the VB performance by over 250%. Expecially if you use 2 servers or more for your site.
An example: With the above setup, the forumhome memory usage drops from 3,500KB to 720KB.
The rest is cached by the memcached/XCache combo.
Still, that does not say your code is bad. Congrats on a good idea.