Optimize ThreadLocalCache while perusal the code.