Since decompression requires time/energy too, assign a last-accessed date to each image, and periodically evaluate and squash infrequently accessed ones; this will result in a majority of the images being squashed, saving a lot of space, but the most frequently requested ones will stay uncompressed until usage drops, reducing energy use from not having to decompress on each request.