This is intended. At the end of the contextmanager I update user, I could do update=False to stop doing auto-saving. I will look at how to remove contextmanager..