TACO: Trajectory-Aware Controller Optimization for Quadrotors