Speed up blank node check.
Speed up prefix matching.