1. A computer-implemented method comprising: identifying, by a computer system, a match between at least a portion of a longest tag value from a plurality of tag values and a subsequence of a tagged element data string in a tag-based file associated with an image; and optimizing, by the computer system, the tagged element data string and a tag table based at least in part on the match.