Why were you doing Memory = JSON.parse(RawMemory.get()); //on the first access to Memory object // ...your script RawMemory.set(JSON.stringify(Memory)); It is done for you before and after the tick.