Currently I use the following technique:
def Myfb(param1, param2, firstTime):
    if firstTime:
        global a = compute()
        global b = compute2()
    global a
    global b
    c = doNormalExecution(param1, param2, a, b)
Is there a more elegant way? I don't like creating globals