core: Add support for splitting secret payload across multiple env vars (#2499)