You've identified a fantastic application of AI, when the technology gets there. A machine can read all the codes with better retention and would have the patience to make these optimizations. A human in the loop could offload some of the judgement-intensive aspects.
I wonder what's the MVP?