optimize build speed

Signed-off-by: Oliver Pinter <oliver.pntr@gmail.com>