Used a new strategy to optimize second phase map.