Scientists and educators alike have long known that cramming is not an effective way to remember things.