any better ideas? basically it means when filtering on types, getNodeNames currently does not save the slightest bit of performance