Fix performance issue on huge tree.
Remove old php app