Avoid key cache duplicates.