For sqlite3 create parent folder if necessary
Security : test plugins_cache.ser file instead of diag_result
Bootconf : die if data is not writeable.