If the parameters are to be the same for all assets, then do not use the "loop" function for looping through assets, but a normal for() or while() loop. Optimize the parameters outside the loop.