Store the config checks on the stack instead of the heap

We only need them once after all.

Signed-off-by: Toon Schoenmakers <nighteyes1993@gmail.com>