In the making of gas cells for optical measurements with optical measuring paths in the range of centimeters and longer, mechanical stability directly affects the stability of the sensor output and thus limits the accuracy of the sensor. Low cost gas cells are normally made through injection moulding with thermoplastic materials. Such gas cells normally deforms with changes in temperature and humidity, or when mechanical stress or forces reach the plastic. It is known to use high-performance thermoplastic materials that are possible to injection mould, such as liquid crystal polymer (LCP). It is also known to use metal if even better accuracy or stability is required. For instance highly sensitive leak detectors use metal optics and or metal mechanics, of course at a significantly higher production cost.