The 49ers are considering deals to extend the contracts of several young players, and that includes troubled linebacker Aldon Smith, general manager Trent Baalke said Friday. "That's the ultimate goal," Baalke said. "At the same time, like every player, there's a lot of things that go into a long-term decision." And even a lot more in Smith's case. He'll miss his fifth straight game Sunday after entering treatment following an alleged drunk-driving accident. How Smith responds after his rehabilitation stint will factor into his long-term future with the 49ers, Baalke noted. "It's like anything, you're developing that trust factor again," Baalke said. "We all understand, including Aldon, that situations like this have to be in the past." Smith and quarterback Colin Kaepernick can't get new contracts until after this season, since they're third-year veterans.