Implemented Cached decorator