balance between security and performance