Added new API for caching data