add evictor thread to cache and fix some memory issues