Make ValueSplitter thread-safe using thread_local storage