Distributed grid search