is this possible to live in a local variable rather than writing to a thread context?