offset_cache disabled
modified to eliminate unnecessary buffer allocation