Add some caching routines.