Moved Buffer creation to queue object. This way memory footprint should be reduced.