Remove unused keys