Expose cache object on the wrapped function, so end users can also extract
cache data easily.