Total rework of uid processing: rid of cache directory