optimization involving future_productsum