Application work on some devices slowed down when updating sqlCipher to version 4.2.0

Our application used version SQL cipher 3.5.3. Due to the requirement of Google to support 64-bit architecture from August 1, 2019, we updated the library to the latest version 4.2.0.
After that, we received some feedback from our users that on their devices the application began to work very slowly, to hang. This is observed on devices MotoG4 Plus (Android 8.1) and Sony Xperia Z3+ (Android 7.1). Please, help solve the problem.

@AntonSavelev

Thanks for your interest in SQLCipher and for posting to the discussion forum.

The SQLCipher 4.0.0 release introduced full memory wiping which is enabled by default. You can disable this feature for performance when the feature is not required by using PRAGMA cipher_memory_security

Additionally we have recommendations for optimizing performance here: SQLCipher Performance Optimization