I don't know how intensive a call to contentstore store is, but I would guess it'd still be better to do

    `contentstore = contenstore()`

And then always use the var rather than the function.