Is there any way to keep global variable value after phone restart?

Hello, I have created a widget with global variable "myVariable" and initial value "1". Now I can increment value using touch action "Switch Global" so current value is 10. After phone restart or widget edit myVariable is always going back to its initial value 1. Is there any way to keep current value after phone restart or widget edit?