Turn on/off the global string cache. This ensures that casts to Categorical types have the categories when string values are equal.