backport of the (C)DEF hash patch to accelerate processing of large (+100 statements) graph instructions.