Implemented the decorator pattern for caching