My preference was for avoiding passing an extra argument in this function, and avoiding performing a query to retrieve the value of ```donot_save_absolute_losses``` for each function call. Therefore, I opted to "memoize" such parameter value by using monkey patching. 

However, following your comment I have realized that it is not worth it. 

So, I will pass this parameter value as an extra input parameter as you suggested (so I will retrieve it only once on the controller node or in the celery task). What do you think?