Minor improvements

`sorted` works with `sets`, `hashlib.md5()` constructor works by itself for simple cases, split cache caches only on first colon