Stability of Beltrami flows