Significantly improve speed by batching operations