We finally solved this problemĀ on SGS III, it is quite workaround - we set that temporary files are stored in memory by default instead of sd-card (SQLITE_TEMP_STORE=2 compile parameter) and it seems to work.