Use thread_local storage in nich,gp score_value