Using the general Encryption Decryption Action Available in the Component would fulfill your Search requirement.
But as I could understand that you are trying to Encrypt /Decrypt a search value ,Pass it to the DB search, get the value back. Encrypt/decrypt and showing the same.
this would not have any impact on the performance as long as your data retrieval and search are performing fine.
these actions are sparkling quick.