Be forewarned that cache.ram will not work as expected with apache/mod_wsgi when using multiple apache processes, as in (from apache config)-->
WSGIDaemonProcess web2py user=www group=www home=/home/www processes=10
The object will only be cached into the process processing that request. With each request cycle you may get any of the 10 processes, not necessarily the one with your cached object. As an alternative I recommend disk caching (http://www.web2py.com/examples/default/examples#cache_examples) or perhaps using memcache (http://mdp.cti.depaul.edu/AlterEgo/default/show/69)
cache.ram is ok when running one process and multiple threads.