Preheat oven to 350°F; grease a 9x13-inch dish with cooking spray.
Beat cream cheese, sour cream, and mayonnaise in a large bowl until smooth and creamy.
Stir in corn, chiles, 1 cup Mexican blend cheese, cotija, chili powder, garlic powder, and optional cayenne; season with salt and pepper.
Spread mixture evenly in dish.
Top with remaining 1 cup Mexican blend cheese.
Bake uncovered 30-35 minutes until bubbly and top cheese is golden.
Cool 5 minutes; garnish with fresh cilantro and serve with lime wedges for squeezing.