- reduce complexity of remove_End_keepalive()