Cache last accessed chunk to avoid repeated hashmap lookups

Signed-off-by: Ross Allan <rallanpcl@gmail.com>