Optimize check for entity-assets

There's a better way to check if entity-assets are existing or not. The original way took for Italy 750 seconds, this method takes only 9 seconds.

\fyi @all