Preserve Transparencies

Does anyone know of a way to (auto)flatten or optimise transparent brushstrokes while preserving the alpha value created by overlap?

To clarify, I want to decrease the processor strain by flattening my strokes, while preserving overlapping areas.

From Drawing menu>optimize, there is option called optimize. This option does flatten while keeping the alpha channel (optimize).