fix similar performance issue on RubyIORackErrors class