Build optimization