cso: move cso hashes to a more table driven scheme