New cached function, a caching decorator
Add direct access to cache dict when using @cached