@nihar.rathod concurrent/racing access on the same document with different CAS is certainly not possible.
Are you sure they are not calling one after another and how do you actually assert they are racing each other?
Btw this cas issue aside, you can use the RawJsonDocument to store and load the raw json string directly, no need to go through fromsjon or toString() and save some allocations.