braindead simple caching mechanism