Don't lock around entire serialization and use synced API. see #2
Don't lock around entire serialization and use synced API. see #2