Only allocate buffer if needed in FlashPolicyHandler