To continue with your example, multiplication of digits gets to be in L1 having lived in main memory for long enough, and being retrieved from main memory often enough, to stay there. The same will be true of anything which is accessed that frequently, but unless things are in the main memory to begin with, they can't possibly get promoted.