animated flag, looping animation that looks continuous?

it is tricky one huh. one solution might be to use the cloth sim as a reference to create shape keys on a normal mesh. Just pick a few frames of the sim and aproximate the shape with a different mesh. kinda hacky but it would work anyway. interested to see a solution to this one.
have fun