Notwithstanding any law to the contrary, an agency may, when required by a federal agency entering into an intergovernmental contract, negotiate contract terms providing for full or partial prepayment to the federal agency before work is performed or services are provided.