revert thread locals experiment (this should never be used for large amount of data!)