Separate grid search into two stages: coarse and fine.