Improve cache configuration