Persist setting changes