Cache the gates for output_zero_x/y
More ALU gate caching