A basic but threadsafe caching system...
