Cacti remain homeostasis because of the lack of leafs it has, because it has no leaves it absorbs less heat keeping more water, it also has a nice waxy coat that remains moist and grows depending on the amount of water it holds, and it's stem acts as a water supply keeping the plant fed and cool in harsh ecosystems.