What is your objection to a global variable in this case. A class variable and a global variable would not be stored any differently in memory.