Performance: Cache the result of MyWindTurbine.IsInAtmosphere
Game version: 1.200.032
This is a relatively expensive check. Cache its result for some time, like 15 seconds. Wind turbines cannot fly out of the atmosphere, they work only on static grids anyway.
This problem is worse on multiplayer servers with many wind turbines on planets. One such server has 287 wind turbines right now, causing ~1.5% Main thread CPU load.