refactored get_asset_chunk to make it more testeable