Prevent uncontrolled cache grow in some (rather rare) cases