1. A method for generating a compressed representation of digital documents on a handheld device, the method comprising: periodically obtaining one or more digital documents stored in a memory of a handheld device; and generating a compressed representation of the one or more digital documents stored in the memory of the handheld device using one or more balanced trees.