Persist array size in metadata table