Save multiple records at once
You could use a task within your plugin for better performance when looping through your records.

Check the TasksService docs and also PowerNap, an example plugin that uses a task.