Optimization: single insert replaced with bulk insert. (issue #3)