I think one should also consider the failure modes when, for example, a tree falls into the wall. For a straight wall, it is possible that a falling section will propagate the failure along the entire length of the wall. For a wavy wall, it is likely to fail in shear, limiting the damage to one section.