Optimize force calculations