There is a bug or not where when i take a lot of cookies for a stat and tried to consume 1000 of it when i try to save the result it glitches and revert to its value before, so if my strength stat is 10 before consuming cookies it reverts to 10 when i consume 1000 cookies and try to save it.
Consuming 100 is safe though and it doesn't recert to its previous value.