performance boost

Signed-off-by: Karl Merkli <info@karl-merkli.ch>