The wrapper checks the arguments against the cache, computes if missing, and stores the result.
graph TD
Call[Call f(x)] --> Check{In cache?}
Check -->|Yes| Return[Return cached]
Check -->|No| Compute[Compute f(x)]
Compute --> Store[Store in cache]
Store --> Return2[Return result]
style Return fill:#E8F5E9
style Return2 fill:#E8F5E9