This is my first ever attempt at optimizing a puzzle for TI and I think I've done pretty good. Edit: found a tertiary save of 4 cycles by moving an output.