Bug fix: fixed optimized "bulk insertion" condition