[malloc] Add cache discard mechanism