Update cache size and have optional configuration param