Optimize save, global variables