optimization: do not save LR if it not modified