Try this statement before executing your insertions:
PRAGMA synchronous = OFF
See the SQLite documentation for details.
Also, as Ilion notes, try the prepare() statement only once, and then re- execute() several times with different binding values. Disabling AutoCommit and then explicitly AutoCommit only for all inserted N rows can also help with some N values.
source share