Creating the function array at startup instead of creating it everytime we execute something