Use a flag to save the state first time - avoid a call to the db