Moves the context map to thread-local storage