optimize ValueNames storage