[cores] Make functions static if possible.