Unique IDs for memory require using node IDs of outputs, not inputs.