Both corrosive battery lugs and hidden corrosion in encapsulated battery wiring is typically the result of "off gassing" from using wet cell batteries.
For this reason, along with others, I advocate the use of AGM house batteries in both marine and RV applications.
I recently replaced my first set of AGM batteries after 10 years and as you can see in the photo, the battery compartment and all the cabling looks like the day I bought the coach.
Gradually, the RV Industry will embrace Lithium batteries as cost come down and mainstream affordable units come equipped with adequately designed control and charging systems to accommodate them.