simply Works_have to reduce complexity of Pattern_based_cache