Method DefaultLoader.SearchForStartupAttribute executes
customAttributes = referencedAssembly.GetCustomAttributes(false);
Which means instantiating of all assembly attributes (that is not necessary and can bring problems)
Can be replaced by
customAttributes = referencedAssembly.GetCustomAttributes<OwinStartupAttribute>(false);
or similar.