Optimize ThreadLocalCache while perusal the code.
Merge pull request #222 from ttoommbb/master

Optimize ThreadLocalCache while perusal the code.