Fix caching memory limit