Is there a way to limit lightmap size when "Lock atlas" is on?

It looks like Unity lightmapper uses 1024x1024 lightmaps when "lock atlas" is enabled. Problem is that it becomes very slow and I don't need that high resolution lightmaps. Is there a way to control lightmap size when "lock atlas" is on?

LightmapEditorSettings.maxAtlasWidth and LightmapEditorSettings.maxAtlasHeight seems to be the answer.