Use cache instead of saving to database
craft()-&gt;cache can point to any one of several different caching drivers as defined by the   cacheMethod config setting.

The available methods are all pretty much stock Yii provided caching drivers, with the exception of FileCache, which we've extended a bit.

Note that FileCache is used by default and its values are saved under the craft/storage/runtime/cache folder.