xbzrle: rebuild the cache_is_cached function