Yes, I agree 40 is a very small cache. It only came up because I have built some additional functionality on top of ristretto and unit tests of that functionality in ‘cache full’ situations used small caches for simplicity.
Fortunately this is easy to work around by using a larger max-cost and cost during set.