[core] fixed slow SSL (fixes #254)