Avoid recalculating sub name hash in util.c:get_db_sub