Envelope #2: Horse Trifecta

You tear open the second envelop and find a small purple flask, alongside a note. The note reads:
A Riddle Man must be bold and resourceful. Prove you are both by attaining $1 million dollars by sundown tomorrow. You may use the included potion of somnolence to aide you in this task.

After quickly Googling somnolence, you come up with a brilliant plan: first, you'll sneak into the local racetrack with the help of the Riddleman's sleeping potion. Once inside, you'll race all the horses to determine the fastest three. The next day you'll place a winning trifecta bet, which if you put your entire life savings into should result in a $1 million dollar payout!

You successfully sneak into the racetrack, but are horrified to discover that the practice track is only wide enough to race 5 horses at a time! After some thinking, you realize you can still determine the fastest three horses by racing five horses at a time and marking down the order in which they finish. However, each additional race you set up increases the risk that the sleeping security guards will wake up. How can you determine the fastest three horses in the least amount of races?

Select 5 horses to race!
horse1
horse2
horse3
horse4
horse5
horse6
horse7
horse8
horse9
horse10
horse11
horse12
horse13
horse14
horse15
horse16
horse17
horse18
horse19
horse20
horse21
horse22
horse23
horse24
horse25
Current Race:

Previous Races:
1st
2nd
3rd
4th
5th
Race #1
Race #2
Race #3
Race #4
Race #5
Race #6
Race #7
Race #8
Race #9
Race #10
Race #11
Race #12
Race #13
Race #14
Race #15