Fix performance issue with sequential backend.