Switched to using Json utility for serialization instead of binary serialization.
It was having problems with ScriptableObjects.
Using it in a separate thread. It is giving me an error even though the docs say that it is ok to use Json Utility in background threads.