Replacement Key for 2011 XF

Is there an alternative to San Diego dealership’s $650 price for a programmed replacement key (this does not include $423 for the metal key piece)? Both of my keys have problems in different ways, even with new batteries.

San Diego may be different, but I had checked with a few places in my neck of the woods about getting a second one for my car, and none of them could do it. The response I got was that the equipment to do it was so expensive that despite the dealership charging roughly $700 for a new key, they would not be able to beat that price. The setup used on these cars, as well as several other European brands, is unique enough that I even had a difficult time finding one that could cut a spare emergency key.