Follow up issue - Protected Environments:
On Protected Environments we're fetching an environment per build on certain conditions. This implies a performance issue as fetching environments is very expensive to evaluate. The relationship Ci::Build
- Environment
- Deployment
aims to help with the performance