Modified but this needs to re-implemented to have better namespace so that segment call back can remove all the cached values which contains any particular segment.