Am now reading JPEGs into RAM and decompressing out of RAM rather than reading to and from disc.  Large performance increase