Enhanced to support both MRU and LRU purge mechanism