How to init a @SharedImmutable val by loading data from file?

For native target (macOS, iOS), I want to loading data from File IO, and hold it as a @SharedImmutable val object which then can be accessed from multi-thread.
But I found noway to implement the code.
Or should I use AtomicReference to do it?

Forget about it.
It was discussed at kotlin blog Kotlin/Native v0.8 released #Better concurrency support.