Adjusted to load data from file, avoid slow database read