extracted abstract SegmentCache and inroduced HeapSegmentCache and
DevNullSegmentCache