Preheat the oven to 350°F (175°C).
Cook the macaroni in well-salted water according to the package directions, stopping one minute before the indicated cooking time for the best texture. Drain the pasta, drizzle it with a tiny amount of olive oil (about ½ teaspoon), and toss to prevent the noodles from sticking while they sit.
While the pasta cooks, melt 4 Tablespoons (55 g) salted butter in a 10-inch cast iron skillet over medium heat. Add ¼ cup (31 g) all-purpose flour and whisk until completely smooth and free of lumps.
Add ½ teaspoon salt, ½ teaspoon ground pepper, 1 teaspoon garlic powder, ½ teaspoon onion powder, and ½ teaspoon ground mustard. Whisk for another 30–60 seconds, allowing the flour to toast lightly and the spices to become fragrant.
Pour in 3 cups (710 ml) whole milk and stir thoroughly. Bring the mixture to a boil. The butter and milk may initially appear separated; continue heating and stirring frequently until the mixture comes together.
Once it reaches a boil, lower the heat to a simmer. Stir frequently until the sauce thickens.
Turn the heat to low. Add 2 cups (226 g) shredded sharp cheddar cheese and 1 cup (113 g) shredded mozzarella cheese. Stir until both cheeses have melted and the sauce is smooth.
Add the cooked and drained macaroni. Stir until every noodle is thoroughly coated in cheese sauce. The mixture will look especially saucy at this point; it will thicken further during baking.
Set the macaroni and cheese aside while preparing the topping.