private constants to get loaded first

Moved variables that are constant before plugin func to evaluate them
only once and always before they are used