Performance tweaks

No change in behavior, only fixing the very inefficient implementation in https://github.com/michaelsauter/crane/pull/77 & improving performance on a system with many containers
Of course... Probably a sign that this code should be extracted :)