optimizing martech stack with ai