Poor man's typed hash and a small opt