Use local variable instead of getter