PERF: scale function is 5x slower than mean/sd for vectors