sync-engine - Add processing state and improve performance