First version of ubercache (on the fly caching)