Simplify caching decorator