Use workaround to use PromiseProxy for lazy loading of kafka notice schema
This is the same workaround used in the unit test. I've adjusted the FIXME here to mention the suggestion Leo had about switching to functools.cache, which is available in python >= 3.9.