Avoid using Reduce to improve performance