Fixing bug #4134

Optimizing ECM indexation :
* Removing some useless code. 
* Limiting number of calls and using static attributes...