Fixing CAS functionality and fixing nasty bug where the table column is not case sensitive and therefore do can have collisions for base64 encoded keys