thread local storage just to open a csv: what could go wrong?