Make hash_transform guard configurable