perf: add synchronous(Normal) + optimize_on_close to record store SQLite (#3577)