I just turn off and then turn on hibernation and it's working here.

However you seem to want to update the hiberfil in a new odd way. The answer is that no one has done that. I'm sure it's possible but you as the author of this new app would have a lot of hurdles to jump.
Bob