Don't allow the buf name cache to get too full.