Optimize Append/Prepend enumeration