cached-method Function wrapper that caches first result. Provides hooks to clear/enable/disable cache