It is nothing about if someone forgive or not…simply do not use global variables.
Im not sure what you mean about last data. But , For example:
You can store:
Sketchup#write_default-class_method
…and retrieve:
Sketchup#read_default-class_method
…data like this.