Should each thread have one of these? Will looking up next operations become a point of cache invalidation?

If it stays global please prepend a `g_` to the variable name.