Kind of annoying, but I wonder if it might also be worth saving `x - x_mean` and `y - y_mean` in temporary variable since they're computed twice.