Fix caching of index maintainers on codec
Fix broken unit test