build pipeline optimization