Use a more efficient data structure for the "operand map". The number of