I was in Cordoba discussing this with an ex pat. It seems that $500K “investment”, combination of real estate and back deposit will get you permanent status. Considering that health insurance for 50 year olds, with high deductible in US is so high, that 500K is automatically paying off, plus it buys a place to live, plus Spain is such a beautiful interesting place.