Pasted passwords and API keys sit unencrypted on your drive, and Clear-History won't erase them.
Microsoft has announced that PowerShell 7 will replace PowerShell 5.1 as the default PowerShell experience on the next version of Windows.