You're thinking of something like a rainbow table. Definitely not the same thing as rewinding a function that loses information.