the law doesn't talk about scale, so either is perfectly legal. Memorizing a billion books vs memorizing one book. Same laws apply.