Address ENG-10695, ENG-8227, as well as a few minor improvements.
- Renamed logs monitoring functions to be more accurate
- Cached last value, so if the connection is closed and then reopened, logs monitoring continues as expected
- Disabled logs monitoring in clearSensitiveData
- Moved primary device check to the place where DB is initialized and operational, instead of doing it for each log which was inefficient
Depends on D14837