I can't see how this works. I think the var has to go and ONLY the filesystem can hold the state. I don't think you need it in any case. See below?