build prefix table instead of hardcoding sequence prefixes