speed up get_distance_array() for common case

4 jobs for index_games in 5 minutes and 19 seconds (queued for 1 second)