Depending on the traffic volume and the variety of traffic to your website, you may need to tweak the settings for the self-pruning cache. Finding an appropriate setting for these two parameters is paramount for optimum performance of your pipeline when using extended user agent parsing.
Legacy Mode uses the same cache as the current implementation.