Description
It's really not a good idea to cache plain text passwords in memory which can easily be comprimised with memory readers to enable password theft. The best thing to do here in the short term is to disable caching if the password is plaintext.
If caching is still desired then a temp key generated at startup can be used to encrypt and decrypt plain text password when put into memory. Perhaps this is the best option which still keeps performance.