You can use MongoDB. We used MongoDB when we built the T2E game on Telegram. It provided sufficient loading speed. You can also use local variables to store the changed values well. You don't need to store this variable for every change.