make sure stored data size is within expected range