threadsafe buffercache