Got rid of unnecessary map removal in getUnpinnedBuffer