> For the complete documentation index, see [llms.txt](https://aiflow-2.gitbook.io/aiflow/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://aiflow-2.gitbook.io/aiflow/platform-structure/layered-architecture/data-layer.md).

# Data Layer

## Data Layer

Purpose: Provides decentralized, secure and efficient data storage using BNB Greenfield, supporting the dynamic behavior of intelligent agents.

Key Features:

* Minimal on-chain metadata in JSON format (stored on BNB Chain)
* Occupies minimal space (1-2 KB per record)
* On-chain query latency controlled within 100 milliseconds
* BNB Greenfield for off-chain data, integrated with IPFS
* AES-256 encryption and Trusted Execution Environments (TEE) for secure data handling
* Distributed Hash Table (DHT) for quick data retrieval
