Create compute api var at __init__

No need to create compute api object at every func call.

Change-Id: I723cb5e26b2de68e1ea8bdb8505567030eb98406
Merge "Create compute api var at __init__"