Avoid unnecessary state change to begin with.