Address various comments of Trustin
Allow to free cached buffers for the current Thread and also allow to check if there exists a cache for the current Thread
try to free up cached buffers if needed on the allocation path