AMENDMENT NO. 2 TO COLLABORATION AND OPTIMIZATION AGREEMENT