Original: To prevent the risks of fire, several rooms were filled with hundreds of water buckets.
Simplified: In case they ever caught fire, several rooms were filled with hundreds of water buckets.