Cached matched_cost_type. fixed transpose_cost return value