sock_init should be called before loading cache