Many premature cable failures occur due to lack of lubrication at the top nipple where the cable engages in the lever.
The nipple should be free to partially rotate as the lever is pulled in, if not the multistrand inner is forced to flex at that point, this work hardens the strands and they break just off the nipple.
Chassis grease is good, water pump/boat trailer grease is better as it resists washing off.
I never use harsh detergents or particularly a pressure washer when cleaning the bike.