Text this: Joint security and performance improvement in multilevel shared caches