Begin by peeling and thinly slicing the sweet onions, aiming for about a quarter inch thickness using a mandolin. Once sliced, gently toss the onions to separate the rings.
In a bowl, mix together the salt, black pepper, smoked paprika, granulated garlic, dry mustard, brown sugar, cayenne, and fresh thyme leaves to create a spice blend.
Drizzle the olive oil over the sliced onions and toss them to ensure they are well coated.
Sprinkle half of the prepared spice blend over the onions and mix with your hands to evenly distribute the spices. Then, add the remaining spice blend and toss the onions again.
Grease a 13x9-inch baking dish and layer half of the seasoned onions at the bottom.
Sprinkle 2 ounces of grated Tillamook mild cheddar and 2 ounces of grated Gruyere cheese over the first layer of onions.
Add another layer of the remaining onions on top.
Top this layer with another 2 ounces of grated Tillamook mild cheddar and 2 ounces of grated Gruyere cheese.
Finish by sprinkling 0.5 cup of fresh grated Pecorino Romano cheese over the entire casserole.
Dot the top with the small pieces of butter.
Cover the dish tightly with foil and bake in a preheated oven at 350°F for 45 minutes.
After 45 minutes, remove the foil and continue baking for an additional 30 minutes, or until the casserole is golden and bubbly.
