short-path: make typemap caching global