Check diff before syncing

Before syncing we must checking diff between existing index in order to prevent unnnecessary syncing.