Don't charge to 100% when always-on wall-plugged-in
If you're needing it as always-on wall plugged you will probably need to stick with that. However newer devices stop charge when 100% and then recharge back from ~95%.

Answer here: How to stop an android device from being charged programmatically? Says that you simply can't use any software to stop the charging.