get_backend_cls cannot be memoized as it keeps reference to app.loader.  Issue #1949