Make the functions only get generated once instead of every pillar