Remove unnecessary allKeys