Use snapshot file for synchronization.

Now just use one ByteBuffer for whole snapshot.