Wrap the package in closure with relevant params when building
Keep LDB (LocalDB) away from globals.