Performance and cost evaluation of an adaptive encryption architecture for cloud databases