fix for offline mode
25% mkdb speed boost