I wonder if this is the best approach to caching it. Why not editing the db class only, and then use the whole query string, md5 it to get a (fairly)u?