fix ANR when opening a big hosts file