properly initialize currentQPY without relying on old value persisting in the thread_context