Added deduplication logic in tile_stat function and improved metatile_delete function