PERF: Improve performance for restricted deformation feild.

Pulling common components outside the inner loop to speed performance.