optimize devise for user