Speed up collision detection