End of lease options

I’m currently leasing a 2022 Audi e-tron premium plus that ends in mid-October. I really like the car and it’s a perfect daily commuter vehicle and I’ve never had a single issue with it. I’d like to keep it at lease end, but the residual is $40k and the current blue book trade in value is $27.5k / private sale is $31.5k. It would be idiotic to pay a residual that will be 10-15k higher than valuation in three months. Is it possible the dealer would work out a deal for me to buy it out for slightly over valuation when I turn it in or is that out of their control? Not sure if the dealer keeps it to sell or if Audi sends them to auction. I did send a note to Audi financial with an offer to buy it out early at the current private party average but they declined and restated the residual value plus the remaining three payments. If there’s not way this happens, I’ll start shopping for a new vehicle well before lease end and just ground it. Thanks in advance.