Freezing is really just writing back your "frozen" value to that memory location very quickly to give the impression that it never changed. To truly "Freeze" a value you would need to NOP all methods that access your value, which takes some reverse engineering and is too much of a pain in the ass.