Optimizes Search Controller