Added in-memory cache decorator