Enable keepalive, remove duplicated data and reduce thread count