Added check on materialized data size