restore schema caching monkeypatch