Remove unnecessary raycasts.