Performance problem with large foreach workflows