         guard let path = networkFileLoader.pathToExistingDataOnDisk() else { return }
         do {
             db = try Connection(path)
+            // try db!.execute("CREATE INDEX IF NOT EXISTS hostidx ON targets(host)") -> useful for testing, db will have this already
+            try db!.execute("PRAGMA synchronous=OFF")
             NSLog("»»»»»» https-e db loaded")
             NSNotificationCenter.defaultCenter().postNotificationName(HttpsEverywhere.kNotificationDataLoaded, object: self)
         }  catch {


    private func applyRedirectRuleForIds(ids: [Int], url: NSURL) -> NSURL? {
        guard let db = db else { return nil }
        let table = Table("rulesets")
        let contents = Expression<String>("contents")
        let id = Expression<Int>("id")

        let query = table.select(contents).filter(ids.contains(id))

        func urlWithTrailingSlash(url: NSURL) -> String {
            let s = url.absoluteString

    static let kNotificationDataLoaded = "kNotificationDataLoaded"
    static let prefKey = "braveHttpsEverywhere"
    static let prefKeyDefaultValue = true
    static let dataVersion = "5.2"
    var isNSPrefEnabled = true
    var db: Connection?
    let fifoCacheOfRedirects = FifoDict()
