added TCEStaticEditorMacro
avoid possible failure if dir does not exist
optimized entities-connection performances at startup