We evaluate the impact of an air gap and optimization of this air gap for the MP512 silicon detector array when operated in dosimetry mode for small photon field measurements in solid water. We present output factor measurements for 6MV and 10 MV photon beams with the square field sizes ranging from 0.5 to 10 cm2. The size of the air gap above the MP512 detector was changed from 0.5, 1.0, 1.2, ...