Add cache; Fix errors; implement extensions for byte collection and stream