There's a
Wiki article here on MobileRead that might help.
I had a shot as doing something similar last year (just for fun). I don't recall any problems with compression of the meta data (as opposed to the actual text of the book). But I never got round to testing it with a large sample of books.