Optimized the evaluation of envelopes / motion curves