Simplified function cache.