Best before optimizing raycast loop