altered welcome#index to only retrieve 5 Entry records, because Entry.all was creating a model for each entry in the db, and all Entries, on instantiation, make 2 API calls.
decoupled get_entities_and_relations into two separate calls for modularity and called them with ActiveRecord's before_save callback instead of after_instantiation to avoid unnecessary API calls.