Z Gateway: How to Optimize the Life of the Backup Battery