maybe having an array listing metadata keys stored at some place?