Integrating SoftReference and Queue management