Avoid unnecessary copy of params map

Increases performance by 40% (or maybe even more with a really complex
structure)