Zach Eflin has landed a notable contract with Rays. Kyle Ross-USA TODAY Sports

The Tampa Bay Rays are breaking the bank (at least relatively speaking) for an unexpected player.

The Rays agreed to a three-year, $40 million contract with free-agent right-hander Zach Eflin on Thursday, per multiple reports. Jeff Passan of ESPN notes that the contract is the largest for a free agent in Rays club history.

The 28-year-old Eflin, a native of Orlando, is a fairly obscure name. He has never made an All-Star team, is not a very dynamic swing-and-miss pitcher and has a pedestrian 36-45 record with a 4.49 ERA over his MLB career. While Eflin has versatility as either a starter or a reliever and posted a solid 3.56 FIP last season, he also carries with him a history of knee issues.

Tampa Bay has handed out much larger extensions before. (The 11-year, $182 million deal they gave shortstop Wander Franco last year is one that comes to mind.) But Eflin is now the owner of the biggest true free-agent contract in the Rays’ quarter-century history. Giving that kind of distinction to a mid-rotation pitcher is pretty surprising, especially since it effectively takes Tampa Bay out of the running for this other rumored target of theirs.

More must-reads:

TODAY'S BEST
Pair of Celtics score 25 points in series-clinching win over Heat
Oilers stars take over in second period to eliminate Kings
Dolphins owner turns down multibillion-dollar offer for control of team
MLB hands out multiple suspensions for Rays-Brewers brawl
Deion Sanders enters social media fray after criticism from former player
Cubs' Shota Imanaga joins impressive club after another incredible outing
Report: Hurricanes pull extension offer for HC Rod Brind'Amour
Knicks legend rips 76ers' Joel Embiid for 'crying too much'
Falcons' Jessie Bates addresses the team's QB conundrum
Mavericks use big third quarter to pull away from Clippers in Game 5
Stars finally win at home, take series lead over Golden Knights
Watch: Stars, Golden Knights trade goals in first period of Game 5
Watch: Heat can't figure out how to stop Celtics star
Analyst highlights concerns about Vikings QB J.J. McCarthy
Bucks release concerning injury report as Game 6 looms
Five-time NBA All-Star reveals thoughts on retirement amid rumors
Bears GM discusses if he considered trading Caleb Williams pick
Insider predicts when Giants QB Daniel Jones could lose starting job
Brittney Griner opens up on arrest, imprisonment in Russia
Saints to sign veteran DB