By caching cellCount we should avoid some useless deserialization