This question was edited after I saw the comment of ianhanniballake. I removed the irrelevant parts.
I have an intent service that repeatedly called by AlarmManager, and reads some file (the content of the file changes rarely) to extract PublicKey object.
What is the best place to store a file (that periodically accessed)? What is the fastest memory? I guess it is SharedPreferences, InternalStorage and in the end ExternalStorage, but I didn't find an answer for this question.
Is there any technique to make such a procedure efficiently (without reading the file everytime)?
I am not sure what you are trying to achieve in the big picture. But i will take a stab at answering your much more targeted questions.
HTH.