Note that this is just the bonus. The salary is not dependent on local living expenses, but on average income for similar work in the area (plus a little bit).
I see no more insanity in basing a bonus on cost of living than in basing a salary on market rate. They're both outside the direct control of either party and lack any fundamental relationship to the properties of the particular company.