Cloud key sanitization improvement