Load resources from memory instead of from file