Perf improvements

Performance improvements around PrefixMatching and pinning Atom::TCore data