Filter out warning messages when key is a file