edit: many thanks for all the answers. Here are the results after applying the optimisations so far:
The creator of SQLite sells a version of SQLite that includes database compression (and encryption). This would be perfect.