Remove dead assets and optimise existing ones