Issue #2924218 by amateescu, Fabianx: Clearing the persistent entity cache every time we switch between workspaces is super wasteful (cherry picked from commit bd583a84)