Storing state on the server is an antipattern. AsyncLocalStorage has its uses but can bloat your server pretty quick. Use after if you're doing post processing.
Using a local global variable, ie a singleton, won't work either since nextjs runs multiple context at once.