PERF: Improve performance for restricted deformation feild.
Merge pull request #56 from stnava/PerfImprovementNOTTested

PERF: Improve performance for restricted deformation feild.