Prepare constants at setup and prevent nil:match()

Better put the userdata/function value at startup than having to call a
function everytime we need to check/return a status.