rewrite: extract parameters from literals
added performance test