When learning ruins performance