Since I remember, Cura has absolutely ridiculous nozzle travel algorithms, I've seen it in early 4.x versions, and it's exactly the same in the latest 5.2.
Once the walls are finished, the head should really move this way while avoiding already printed parts:
Instead it does this weird dance wasting time.. Every. Single. Layer.
The same happens for the outer walls, instead of a simple A > B it follows the contour. I swear that 50% of the print time is the actual printing, the other 50% is watching the nozzle move all over the place to fill a tiny gap on one end, then go back to continue the wall.. Can you please do something about it?