I have some python function that solves an optimization problem in python using CVXPY and ECOS/MOSEK solvers. When I call the function repeatedly (within for loop) and pass