All variables that don't start with "__" can be changed. In "hash", you can (and should) change initial value of __lv, as long as it's constant.
I don't know whether this is secure or not.