Optimize BSON::ObjectId.to_s with a C extension.