Adds caching.