IoT power optimization