switch to per schema caching, faster with lots of schemata