[Feature request] smart charging to promote battery health

I'd like to propose a smart charging feature to protect battery health on the long run. Some people simply don't need 100% of their battery in between charges, yet a full charge does age the battery more rapidly. A feature that allows you to disable charging for instance at 80% capacity can nearly double the lifetime expectancy (number of cycles) of the battery. So the battery simply doesn't require replacement all too soon, hence saving effort and resources. Such smart charging feature is present in some custom ROMs already and might be easy to implement.

More background info can be found here, see "Table 4: Discharge cycles and capacity as a function of charge voltage limit" https://batteryuniversity.com/article/bu-808-how-to-prolong-lithium-based-batteries