Learning environment optimization