Diff processing optimalization