Improved performance for larger datasets, versions now increase only for modified relations or states