Inline forEach to improve wrapAll performance