introduced node type caching, does not help really