If you’ve never had the …pleasure… of rendering out massive amount of mattes this may not wow you.

Cryptomatte is a tool created at Psyop by Jonah Friedman and Andy Jones. It creates ID mattes automatically with support for motion blur, transparency, and depth of field, using organizational information already available at render time. This organizational information is usually names, object namespaces, and material names.

https://github.com/Psyop/Cryptomatte