On twisted algebras and hyperplane arrangements