Improved v8 performance by assiging undefined instead of using delete