et-templateTablesBuilding: adapted to the new interface, removed lines "nosg" and "nopl" from template tables, added in-memory cache of created tables.