I am Developing an onpremise solution for a client without any control and internet connection on the machine. 

The solution is to be monetized based on number of allowed requests(REST API calls) for a bought license. So currently we store the request count in an encrypted file on the file system itself. But this solution is not perfect as the file can be copied somewhere and then replaced when the requests quota is over. Also if the file is deleted then there's manual intervention needed from support.

I'm looking for a solution to store the state/data in binary and update it runtime (consider usage count that updates in binary itself)

Looking for a better approach.

Also binary should start from the previous stored State

Is there a way to do it?

P.S. I know writing to binary won't solve the issue but I think it'll increase the difficulty by increasing number of permutation and combinations for places where the state can be stored and since it's not a common knowledge that you can change the executable that would be the last place to look for the state if someone's trying to mess with the system (security by obscurity)