Add optional precalculated hashes to string constants