Retaining some data across different log events

So after some playing around, I found that reducing number of pipeline workers to 1 seems to be helping so the issue is indeed some sort of thread unsafeness, any other practical workarounds?