Performance fix when running without a security manager