Selecting column decoder only once and fixing issue when handling a query with many nulls