Maybe we should escape earlier if `hashVal` is empty (or not even call `amdify` if we don't have the pareameter)