Changed endpoints database to WAL, async. On some systems flushing takes forever - roughly 1 sec pr commit !!!