# Best Practices

As developers, it's crucial to adopt best practices that not only protect confidential information but also maintain the integrity of the confidential smart contracts. In this section, we'll explore key recommendations aimed at enhancing the security and efficiency of smart contracts handling confidential data. From understanding the implications of decryption to optimizing array access and safeguarding against arithmetic overflows, these best practices offer valuable insights into building robust and privacy-preserving smart contracts


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.coti.io/coti-documentation/build-on-coti/guides/best-practices.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
