get the yz 250. cheap to maintain and easy to work on. top end will last ages if you dont thrash it. my first race bike was a 2009 YZ250. barely used to turn the throttle.
gear it up, add a flywheel weight and a suspension revalve and you will be set.
parts are cheaper then ktm too. (in aus anyway)