Hard Cranking When Hot

I had this issue for years on my Jeep. I replaced the starter and battery with no luck. I went through and replaced most of the ends on all of the power cables and the issue went away. I think I had internal corrosion in the ends prevent current flow.