trim out unused dependencies
Create solution if there's not one cached already