avoid cloning moments whenever possible

Cloning moments is sloooow. Cache computed moments whenever possible for
a massive speedup.