Basic 'structural signatures' idea.
Implemented caching of compiled traces.