A collection may or may not support a long name, depending on the value of the supportLongName field. The actual namespace of the corresponding chunks collection depends on this configuration and, in particular, might use the collection name or UUID as a suffix (for example, config.cache.chunks.test.foo or config.cache.chunks.c4522ed9-6a0e-4e02-8145-cf2e9f35081e).
The logic that determines the actual chunks collection namespace should reside in a single function, avoiding scattering which are subsequently difficult to maintain.