This MR introduces changes to Plan structure that aims to reduce memory consumption in Plan.
@darthunix