Optimize speed limit query by adding type filter