When to Sacrifice either Performance or Security in your Application