Update gc for key and value