Save only changed variables