A midseason move to the Dallas Mavericks revitalized David Lee‘s career, as he again resembled the high-efficiency offensive force who was once a building block for the Golden State Warriors.

The San Antonio Spurs rewarded Lee’s play Thursday by signing him to a two-year contract.

Lee’s agency, Priority Sports, announced the signing on Twitter. ESPN’sMarc Stein added the deal is worth $3.2 million over two years, with a player option for the second year.

Lee, 33, split last season between the Mavericks and Boston Celtics. After Golden State traded him to Boston in the offseason, Lee struggled to find playing time on the Celtics’ youth-laden roster. Boston reached a buyout with the disillusioned forward in February, allowing him to sign with Dallas for the stretch run.

Lee responded by turning into one of the best per-minute reserves in basketball, averaging 8.5 points and 7.0 rebounds in 17.3 minutes per game with the Mavericks. A foot injury limited him in Dallas’ first-round playoff series against the Oklahoma City Thunder, as he sat out for three of the five games.