If state is only needed locally, local state is simpler and keeps ownership close to where the state is used.